Package-level declarations

Types

Link copied to clipboard
data class BarcodeData(val data: String, val dataBytes: ByteArray, val quantity: Int, val symbologyId: Int, val symbology: String, val timeOfScan: String, val deviceId: String)

This class holds detailed information about a scanned barcode, including:

Link copied to clipboard
abstract class BaseCommand(val code: String, val parameters: List<String> = emptyList(), val sendFeedback: Boolean = true, val ledFeedback: Boolean? = null, val buzzerFeedback: Boolean? = null, val vibrationFeedback: Boolean? = null)

Abstract class representing a base command for the scanner.

Link copied to clipboard
data class BatteryLevelStatus(val isBatteryPresent: Boolean, val isWirelessCharging: Boolean, val isWiredCharging: Boolean, val isCharging: Boolean, val isBatteryFaulty: Boolean, val percentage: Int)
Link copied to clipboard
data class BleDiscoveredDevice(val name: String, val deviceId: String, val rssi: Int, val timeStamp: Date, val connectionPoolId: String)

A class representing a BLE device discovered during scanning.

Link copied to clipboard
data class CommandData(var command: String, var parameters: MutableList<String> = mutableListOf())

Represents a command and its associated parameters for scanner settings.

Link copied to clipboard
class CommandResponse(val response: String, val succeeded: Boolean)

A class representing the response of a command sent to a device.

Link copied to clipboard
data class DeviceInfo(val deviceId: String, val macAddress: String, val serialNumber: String, val localName: String, val firmwareVersion: String)

A class representing basic information about a connected Opticon BLE scanner.

Link copied to clipboard
data class LEDColor(val red: Int, val green: Int, val blue: Int)

A class representing the RGB color values for the LED.

Link copied to clipboard
class ScannerCommand(val code: String, val parameters: List<String> = emptyList(), val sendFeedback: Boolean = true, val ledFeedback: Boolean? = null, val buzzerFeedback: Boolean? = null, val vibrationFeedback: Boolean? = null) : BaseCommand

Class representing a specific scanner command, inheriting from BaseCommand.